package artid.com.arttogoa.parser;

import java.io.Serializable;

import org.json.JSONObject;

public class ConsultationList extends AppItem implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String id;
	String title;
	String create_time;
	String state;
	String imgurl;
	String realname;
	String type;
	String sharelink;


	@Override
	public void parse(JSONObject obj) {
		if (null == obj) {
			return;
		}
		id = obj.optString("id");
		title = obj.optString("title");
		create_time = obj.optString("create_time");
		state = obj.optString("state");
		imgurl = obj.optString("imgurl");
		realname = obj.optString("realname");
		type = obj.optString("type");
		sharelink = obj.optString("sharelink");

	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getCreate_time() {
		return create_time;
	}


	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}


	public String getState() {
		return state;
	}


	public void setState(String state) {
		this.state = state;
	}


	public String getImgurl() {
		return imgurl;
	}


	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}


	public String getRealname() {
		return realname;
	}


	public void setRealname(String realname) {
		this.realname = realname;
	}


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}


	public String getSharelink() {
		return sharelink;
	}


	public void setSharelink(String sharelink) {
		this.sharelink = sharelink;
	}


	@Override
	public String toString() {
		return "ConsultationList [id=" + id + ", title=" + title
				+ ", create_time=" + create_time + ", state=" + state
				+ ", imgurl=" + imgurl + ", realname=" + realname + ", type="
				+ type + ", sharelink=" + sharelink + "]";
	}

	

}
